import store from "../index.js"
import http from '@/common/http.js'
import Vue from 'vue'
import $api from 'api'

const state = {
	shenheSwitch:'0'
}

const mutations = {
	// 设置审核开关项
	UPDATE_SHENHE_STATUS(state, payLoad) {
		state.shenheSwitch = payLoad.data
	}
}

const actions = {
	async getConfigSwitch(context) {
		let configInfo = await $api.getConfig({
			name:'is_check'
		})
		context.commit('UPDATE_SHENHE_STATUS', configInfo)
	}
}



export default {
	state,
	mutations,
	actions
}
